package com.wonders.framework.entity.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 分页对象
 * 
 * @author WuBin
 * 
 */
public class Page implements Serializable {

	/**
	 * 当前页数
	 */
	private int pageNum = 1;

	/**
	 * 每页条数
	 */
	private int pageSize = 10;

	/**
	 * 总页数
	 */
	private int totalPage = 1;

	/**
	 * 总条数
	 */
	private int totalSize = 0;

	/**
	 * 排序字段
	 */
	private String sortField;

	/**
	 * 排序方向
	 */
	private String sortOrder;

	/**
	 * 分页数据
	 */
	private List data;

	public int getPageNum() {
		return pageNum;
	}

	public int getPageSize() {
		return pageSize;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public int getTotalSize() {
		return totalSize;
	}

	public List getData() {
		return data;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public void setTotalSize(int totalSize) {
		this.totalSize = totalSize;
	}

	public String getSortField() {
		return sortField;
	}

	public String getSortOrder() {
		return sortOrder;
	}

	public void setSortField(String sortField) {
		this.sortField = sortField;
	}

	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}

	public void setData(List data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "Page [data=" + data + ", pageNum=" + pageNum + ", pageSize="
				+ pageSize + ", sortField=" + sortField + ", sortOrder="
				+ sortOrder + ", totalPage=" + totalPage + ", totalSize="
				+ totalSize + "]";
	}

}
